{"version":3,"sources":["vk_mediaservice.js"],"names":["BX","namespace","Landing","MediaService","Vk","url","settings","BaseMediaService","apply","this","arguments","matcher","Utils","Matchers","vk","isDataLoaded","embedInfoLoader","loadEmbedInfo","then","res","onCustomEvent","catch","error","message","embedInfo","embedURL","params","util","objectMerge","getSettings","getUserSettings","isAnotherService","autoplay","mute","embedUrl","add_url_param","previewURL","idPlace","validate","test","prototype","constructor","__proto__","getSettingsForm","form","UI","Form","BaseForm","addField","Field","Dropdown","title","Loc","getMessage","description","selector","content","isBgVideoMode","parseInt","items","name","value","disabled","backend","Backend","getInstance","action","result","Promise","resolve","addCustomEvent","window","eventData","reload","popup","matchedUrl","match","length","videoId","player","preview","convertToAnotherService","type","Type","isArray","errorMessages","forEach","errItem","push","error_description","reject","join","youtube","getURLPreview","IMAGE"],"mappings":"CAAC,WACA,aAEAA,GAAGC,UAAU,2BAMbD,GAAGE,QAAQC,aAAaC,GAAK,SAAUC,EAAKC,GAC3CN,GAAGE,QAAQC,aAAaI,iBAAiBC,MAAMC,KAAMC,WACrDD,KAAKE,QAAUX,GAAGE,QAAQU,MAAMC,SAASC,GACzCL,KAAKM,aAAe,MACpBN,KAAKO,gBAAkBP,KAAKQ,gBAC5BR,KAAKO,gBACHE,MAAKC,IACLV,KAAKM,aAAe,KACpBf,GAAGoB,cAAcX,KAAM,mBAEvBY,OAAMC,IACNtB,GAAGoB,cAAcX,KAAM,kBAAmB,CAAC,CAACc,QAASD,QAEvDb,KAAKe,UAAY,KACjBf,KAAKgB,SAAW,KACf,GAAIhB,KAAKe,UACT,CACC,MAAME,EAAS1B,GAAG2B,KAAKC,YACtBnB,KAAKoB,cACLpB,KAAKqB,mBAEN,GAAIrB,KAAKsB,oBAAsBL,EAAOM,UAAY,EAClD,CACCN,EAAOO,KAAO,EAEfxB,KAAKe,UAAUU,SAAWlC,GAAG2B,KAAKQ,cAAc1B,KAAKe,UAAUU,SAAUR,GAG1E,OAAOjB,KAAKe,UAAYf,KAAKe,UAAU,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